const gltfLoader = new THREE.GLTFLoader()
let mesh
gltfLoader.load('./Residential_House.glb', function (gltf) {
    mesh = gltf.scene.children[0]
    scene.add(mesh)
    const mesh2=mesh.clone()
    scene.add(mesh2)
    mesh2.position.x=2
    // mesh.position.x = 2
    mesh.position.y = 0
    mesh.position.z = 0
    mesh.rotation.y = 0.6
    animate()
    // renderer.render(scene, camera);
})

window.addEventListener('resize', function () {
    camera.aspect = $container.clientWidth / $container.clientHeight;
    camera.updateProjectionMatrix();
    renderer.setSize($container.clientWidth, $container.clientHeight);
})

